package com.hshoesmall.demo.service.lmpl;


import com.hshoesmall.demo.mapper.SizeMapper;
import com.hshoesmall.demo.model.entity.Size;
import com.hshoesmall.demo.service.SizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


@Service(value = "SizeService")
@Transactional(rollbackFor = Exception.class)
public class ShoesSizelmpl implements SizeService {


    @Resource
    SizeMapper sizeMapper;

    @Override
    public List<Size> findSizeList() {

      List<Size> size= sizeMapper.findAllSize();
      return size;
    }

}
